home *** CD-ROM | disk | FTP | other *** search
- Path: swcbbs.com!swcbbs!ken.brady
- From: ken.brady@swcbbs.com (KEN BRADY)
- Newsgroups: comp.lang.c++
- Subject: Re: Is Pascal worth to le
- Message-ID: <8B8F52F.0054014CDF.uuout@swcbbs.com>
- Date: Tue, 16 Jan 96 22:07:00 -500
- Distribution: world
- Organization: Software Creations BBS
- Reply-To: ken.brady@swcbbs.com (KEN BRADY)
- References: <8B87053.0054014A15.uuout@swcbbs.com>
- X-Newsreader: PCBoard Version 15.21
- X-Mailer: PCBoard/UUOUT Version 1.10
-
- A few comments from a veteran Turbo Pascal programmer:
-
- So> In article <DL2tFM.7DJ@hkuxb.hku.hk>, hwslau@dragon.cs.hku.hk (│t└s)
- So> wrote: >In general, I think Pascal is a good programming language to start with.
- >At least, it is designed for education purposes. Apart from Basic, Pascal
- >was my first programming language learnt. After that, picking up other
- >structured prog. lang. would not be very difficult. In fact, I think you
- >can use Pascal to do anything you want instaed of using other lang.
- So> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- So> I can't agree with this. There are things that you simply can't do in
- So> Pascal. For example, in C I can swap two integers a and b without
- So> using a temporary variable in three statements: a ^= b; b ^= a; a^= b ,
- So> I can also use bit-vector s.
- So> I can have generic pointers that may point to everything or nothing.
-
- Pascal has generic pointers, as well as type-casting for when you need to
- defeat its strong type-checking.
-
- So> I can have
- So> arrays with no compile-time defined sizes.
-
- In Pascal, arrays are easily allocated dynamically on the heap.
-
- So> AFAIK there are no way of
- So> doing such things in Pascal. At least not in standard Pascal. There are
- So> also many fallback s
- So> in Pascal that are inconvenient for programmers, e.g. no break within
- So> loops. That's why there are things like Modula-2.
-
- You can break out of a loop (while or for loops) by setting your end-
- conditional true (e.g., setting the while conditional to false, or
- setting your for-loop variable to its final value.
-
- So> For the original poster, so far I have only seen one employer in Hong
- So> Kong that specifically requires Pascal. It's one of those news
- So> agencies. And believe it o r
- So> not, they use VAX!!
-
- For me, Pascal was a tremendous improvement of Basic an Fortran, and
- Turbo Pascal was the perfect place to learn the concepts of OOP. I
- shudder to imagine learning OOP with C++. I am not a computer
- professional; programming is just one of the many tools
- I use in my work (biochemical research).
-
- kbrady@ultranet.com
-
- ... Madness takes its toll. Please have exact change.
- ___ Blue Wave/QWK v2.12
-
-